package com.hx.er.service.manager;

import java.util.List;
import java.util.Map;

import com.hx.er.bean.base.FoodBean;
import com.hx.er.bean.base.FoodTemplateBean;
import com.hx.er.bean.base.RestraurantBean;
import com.hx.er.bean.detail.FoodDetailBean;
import com.hx.er.bean.detail.FoodTemplateDetailBean;

public interface IManagerFoodService {

	public List<FoodBean> getFoodAliveList(Map<String, Object> conditions);

	public FoodDetailBean getFoodAliveById(long foodId);

	public int getFoodAliveCount(Map<String, Object> conditions);

	public List<FoodTemplateBean> getFoodTemplateAliveList(Map<String, Object> conditions);

	public FoodTemplateDetailBean getFoodTemplateAliveById(long foodTemplateId);

	public int getFoodTemplateAliveCount(Map<String, Object> conditions);

	public void insertFoodWithoutId(FoodBean foodBean);

	public int deleteFood(FoodBean foodBean);

	public int updateFood(FoodBean foodBean);

	/**
	 * 通过编号查询餐厅信息
	 * 
	 * @param restBean
	 * @return
	 */
	public RestraurantBean getRestById(long restId);

	/**
	 * 将食品的顺序向前移
	 * 
	 * @param foodBean
	 * @return
	 */
	public boolean foodForward(FoodBean foodBean);

	/**
	 * 将食品的顺序向后移
	 * 
	 * @param foodBean
	 * @return
	 */
	public boolean foodBackward(FoodBean foodBean);
}
